<?php
$file = "..".$_POST['name'];
if (!unlink($file))
  {
  echo  json_encode(array("ok"=>1,"picname"=>$file));
  }
else
  {
  echo  json_encode(array("ok"=>0,"picname"=>$file));
  }
?>